package com.deer.wms.base.system.model.erp;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;

/**
 * @author wei
 */
public class ErpInConstant {
//    private static final String BASE_URL = "http://61.160.125.186:5555/zp/api";
    private static final String BASE_URL = "http://61.160.125.186:5555/zp/api";
    public static String SYNC_DATA = DateUtil.formatDate(DateUtil.yesterday());

    /**
     * 采购 (==完成==)
     */
    public static final Integer ERP_IN_TYPE_ASN = 1999;
    public static final String ERP_IN_GETURL_ASN = BASE_URL + "/ZpViewPurOrder/Query";
    public static final String ERP_IN_RETURL_ASN = BASE_URL + "/ZpViewPurOrder/Create";

    /**
     * 委外退(==完成==)<br>
     * 本质是从委外仓调拨到物料仓，不需要回传
     */
    public static final Integer ERP_IN_TYPE_OSRETURN = 1990;
    public static final String ERP_IN_GETURL_OSRETURN = BASE_URL + "/ZpViewTransIn/Query";

    /**
     * 全程委外收(==完成==)<br>
     * 与采购同样的接口
     */
    public static final Integer ERP_IN_TYPE_OUTSOURCE = 1989;
    public static final String ERP_IN_GETURL_OUTSOURCE = BASE_URL + "/ZpViewRcvSrv/Query";

    /**
     * 生产退料(==完成==)<br>
     * 本质是从线边仓调拨到物料仓，不需要回传
     */
    public static final Integer ERP_IN_TYPE_PRDRETURN = 2001;
    public static final String ERP_IN_GETURL_PRDRETURN = BASE_URL + "/ZpViewTransIn/Query";
//    public static final String ERP_IN_RETURL_PRDRETURN =;

    /**
     * 生产入库(==完成==)
     */
    public static final Integer ERP_IN_TYPE_PRD = 2002;
    public static final String ERP_IN_GETURL_PRD = BASE_URL + "/ZpViewComplete/Query";


    /**
     * 销售退
     */
    public static final Integer ERP_IN_TYPE_SALESRETURN = 2000;
    public static final String ERP_IN_GETURL_SALESRETURN = "http://61.160.125.186:5555/zp/api/ZpViewRtnRcv/Query";
    public static final String ERP_IN_RETURL_SALESRETURN = "http://61.160.125.186:5555/zp/api/ZpViewRtnRcv/Create";

    /**
     * 杂收(==完成==)
     */
    public static final Integer ERP_IN_TYPE_ZS = 2999;
    //退料入库  与杂收走同样的流程
    public static final Integer ERP_IN_TYPE_ZS2 = 2999;
    public static final String ERP_IN_RETURL_ZS = BASE_URL + "/ZpViewMisc/Create";  //http://61.160.125.186:5555/zp/api/ZpViewMisc/Create
}
